package com.boot.multi.source.service;

import java.util.Map;

/**
 * @author 刘志强
 * @date 2020/11/27 14:35
 */
public interface ProducerAndConsumerService {

    /**
     * 获取生产库和消费库的用户
     * @param producerId
     * @param consumerId
     * @return
     */
    Map<String, Object> getProducerUserAndConsumerUser(Long producerId, Long consumerId);

    /**
     * 分别向生产者和消费者库中添加用户
     * @param producerUserName
     * @param consumerUserName
     * @return
     */
    String addProducerUserAndConsumerUser(String producerUserName, String consumerUserName);
}
